package com.hexinfo.dmpro.component.comparison.service;

import com.hexinfo.dmpro.component.comparison.entity.TableContrastParamEntity;
import com.hexinfo.dmpro.component.comparison.entity.TableContrastResultEntity;

import java.util.List;
import java.util.Map;

public interface ITableContrastService {

    /**
     * @Method createTableContrastTask
     * @Param tableContrastParam
     * @Return
     * @Description 增加表比对任务
     * @Author Huang Yanyihe
     * @Date 2023/9/6 16:33
     * @Version V1.0
     */
   boolean createTableContrastTask(TableContrastParamEntity tableContrastParam);


    /**
     * @Method queryTableContrastResult
     * @Param tableContrastParam
     * @Return com.hexinfo.dmpro.component.comparison.entity.TableContrastResultEntity
     * @Description 查询比对结果
     * @Author Huang Yanyihe
     * @Date 2023/9/11 9:56
     * @Version V1.0
     */
    TableContrastResultEntity queryTableContrastResult(String tableFlag);

    /*
     * @Method: queryAllTableContrastResult <br>
     * @Param: [] <br>
     * @Return: java.util.List<com.hexinfo.dmpro.component.comparison.entity.TableContrastResultEntity> <br>
     * @Description：查询所有表对比结果<br>
     * @Author： wz.li<br>
     * @Date： 2023/9/23 15:40 <br>
     * @Version： V2.0.2<br>
     */
    Map<String, List<TableContrastResultEntity>> queryAllTableContrastResult();

    /**
     * @Method cancelTableContrastTask
     * @Param tableFlag
     * @Return boolean
     * @Description 终止表比对任务
     * @Author Huang Yanyihe
     * @Date 2023/9/18 17:04
     * @Version V1.0
     */
    boolean cancelTableContrastTask(String tableFlag);

}
